import request from '@/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-/anwise/order/order/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/blade-/anwise/order/order/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/blade-/anwise/order/order/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/blade-/anwise/order/order/submit',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/blade-/anwise/order/order/submit',
    method: 'post',
    data: row
  })
}

export const reject = (id) => {
    return request({
        url: '/api/blade-/anwise/order/order/reject',
        method: 'post',
        params: {
            id,
        }
    })
}

export const orderReport = (id,isEnglish, hiddenPrice) => {
    return request({
        url: '/api/blade-/anwise/order/order/orderReport?id='+id+'&isEnglish='+isEnglish+'&hiddenPrice='+hiddenPrice,
        method: 'get',
        params: {}
    })
}

export const checkProd = (id) => {
    return request({
        url: '/api/blade-/anwise/order/order/checkProd',
        method: 'post',
        params: {
            id,
        }
    })
}

export const checkCounterAudit = (row) => {
    return request({
        url: '/api/blade-/anwise/order/order/checkCounterAudit',
        method: 'post',
        data: row
    })
}